package com.smartleanx.module.hrm.api.corp;


import com.alibaba.fastjson2.JSONObject;
import com.smartleanx.framework.common.pojo.CommonResult;
import com.smartleanx.module.hrm.elecCorp.CropApi;
import com.smartleanx.module.hrm.service.esign.auth.IElecCorpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController // 提供 RESTful API 接口，给 Feign 调用
@Validated
@Component
public class CorpImplApi implements CropApi {

    @Autowired
    private IElecCorpService elecCorpService;

    @Override
    public CommonResult<List<JSONObject>> corpBySelect() {
        return CommonResult.success(elecCorpService.corpBySelect());
    }



}
